package com.leyou.client;

import com.leyou.pojo.Category;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@RequestMapping("category")
public interface CategoryClientServer {

    @RequestMapping("list")
    public ResponseEntity<List<Category>> queryCategory(@RequestParam("pid")Long pid);

    //通过分类id查询分类

    @RequestMapping("findCategoryById/{cid}")
    public Category findCategoryById(@RequestParam("id") Integer cid);


    //通过ids获取对应的分类
    @RequestMapping("findCategoryByCids")
    public List<Category> findCategoryByCids(@RequestParam("cid1") Integer cid1,@RequestParam("cid2") Integer cid2,@RequestParam("cid3") Integer cid3);

}
